import request from '@/utils/request'

// 查询文章管理列表
export function listMessage(query) {
  return request({
    url: '/article/message/list',
    method: 'get',
    params: query
  })
}

// 查询文章管理详细
export function getMessage(uid) {
  return request({
    url: '/article/message/' + uid,
    method: 'get'
  })
}

// 新增文章管理
export function addMessage(data) {
  return request({
    url: '/article/message',
    method: 'post',
    data: data
  })
}

// 修改文章管理
export function updateMessage(data) {
  return request({
    url: '/article/message',
    method: 'put',
    data: data
  })
}

// 批量修改文章管理
export function updateMessageList(data) {
  return request({
    url: '/article/message/list',
    method: 'put',
    data: data
  })
}

// 删除文章管理
export function delMessage(uid) {
  return request({
    url: '/article/message/' + uid,
    method: 'delete'
  })
}

export function getWeekSee(query) {
  return request({
    url: '/see/see/getWeekSee',
    method: 'get',
    params: query
  })
}

export function getHourSee(query) {
  return request({
    url: '/see/see/getHourSee',
    method: 'get',
    params: query
  })
}

export function getMonthSee(query) {
  return request({
    url: '/see/see/getMonthSee',
    method: 'get',
    params: query
  })
}

export function getAllSee(query) {
  return request({
    url: '/see/see/getAllSee',
    method: 'get',
    params: query
  })
}
